import request from "../util/require"


/**
 * @description: 获取历史记录
 * @return {*}
 * @author: tao wenbo 2419421809@qq.com
 */
export function getHistory(){
    return request.get("/api/history")
}

/**
 * @description: 添加历史记录
 * @param {number} fileId
 * @return {*}
 * @author: tao wenbo 2419421809@qq.com
 */
export function addHistory(fileId: number){
    return request.post("/api/history",{
        fileId
    })
}

/**
 * @description: 删除历史记录
 * @param {number} historyId
 * @return {*}
 * @author: tao wenbo 2419421809@qq.com
 */
export function deleteHistory( historyId: number ){
    return request.delete(`/api/history/${historyId}`)
}

